package neuroBot.exploit.fulltilt;

import java.awt.Rectangle;
import java.awt.Robot;
import java.awt.image.BufferedImage;

public class NameShooter {

	public static int nameRecWidth = 97, nameRecHeight = 15;

	public static final int[] nameRecUpLeftXY = new int[] { 479, 123, 660, 197,
			693, 352, 546, 459, 355, 485, 159, 459, 10, 351, 46, 196, 225, 123 };

	public Robot rob;

	public NameShooter() {
		try {
			rob = new Robot();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	public BufferedImage shootName(int seat) {
		Rectangle nameRec = new Rectangle(nameRecUpLeftXY[seat * 2],
				nameRecUpLeftXY[seat * 2 + 1], nameRecWidth, nameRecHeight);
		BufferedImage bimg = rob.createScreenCapture(nameRec);

		return bimg;
	}

}
